package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.WeixinMenuDao;
import io.renren.entity.WeixinMenu;
import io.renren.service.WeixinMenuService;



@Service("weixinMenuService")
public class WeixinMenuServiceImpl implements WeixinMenuService {
	@Autowired
	private WeixinMenuDao weixinMenuDao;
	
	@Override
	public WeixinMenu queryObject(Integer id){
		return weixinMenuDao.queryObject(id);
	}
	
	@Override
	public List<WeixinMenu> queryList(Map<String, Object> map){
		return weixinMenuDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return weixinMenuDao.queryTotal(map);
	}
	
	@Override
	public void save(WeixinMenu weixinMenu){
		weixinMenuDao.save(weixinMenu);
	}
	
	@Override
	public void update(WeixinMenu weixinMenu){
		weixinMenuDao.update(weixinMenu);
	}
	
	@Override
	public void delete(Integer id){
		weixinMenuDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		weixinMenuDao.deleteBatch(ids);
	}

	@Override
	public List<WeixinMenu> queryListByParent(Map<String, Object> map) {
		return weixinMenuDao.queryListByParent(map);
	}

	@Override
	public void updateAllStatus() {
		weixinMenuDao.updateAllStatus();
		
	}

	@Override
	public void updateSomeStatus(Integer[] ids) {
		weixinMenuDao.updateSomeStatus(ids);
		
	}

	@Override
	public List<WeixinMenu> queryListByIds(Integer[] ids) {
		
		return weixinMenuDao.queryListByIds(ids);
	}
	
}
